<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        /*浮动布局*/
        .flex {
            display: flex;
        }

        /*换行*/
        .warp {
            flex-wrap: wrap;
        }

        /*每个模块均匀分布*/
        .space {
            justify-content: space-around;
        }

        /*左右两端分开布局*/
        .between {
            justify-content: space-between;
        }

        /*居中*/
        .center {
            justify-content: center;
        }

        /*绝对定位*/
        .absoulet {
            position: absolute;
        }

        /*相对定位*/
        .relative {
            position: relative;
        }

        /*固定定位*/
        .flexd {
            position: fixed;
        }


        /*收缩框体*/
        .padding-body {
            margin: 0;
            top: 0;
            left: 0;
            /* top: 10px; */
            width: 100%;
        }

        /*导航*/
        header {
            background-color: #2dbb55;
            color: white;
            margin: 0 auto;
            vertical-align: middle;
            min-width: 1400px;
        }

        header a {
            margin-right: 10px;
        }


        /*先找到header，再找到logo*/
        header a .logo {
            width: 140px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            margin-top: 4px;
        }


        /*导航字体*/
        .header_font {
            font-size: 16px;
            font-family: initial;
        }

        /*后代选择器*/
        #navitems ul {
            /* 去除小黑点 */
            list-style: none;
            display: flex;
        }

        #navitems ul li {
            width: 80px;
            height: 50px;
            line-height: 50px;
            /*垂直居中*/
            text-align: center;
            /*水平居中*/
        }

        #navitems ul li a {
            display: block;
            /*区块化*/
            color: white;
            text-decoration: none;
        }

        #navitems ul li:nth-child(5):after {
            display: block;
            width: 16px;
            height: 16px;
            content: "hot";
            color: white;
            background-color: red;
            position: relative;
            left: 46px;
            top: -46px;
            font-size: 10px;
            line-height: 16px;
            text-align: center;
            border-radius: 5px;
        }

        #navitems ul li:nth-last-child(4):after {
            display: block;
            width: 16px;
            height: 16px;
            content: "hot";
            color: white;
            background-color: red;
            position: relative;
            left: 46px;
            top: -46px;
            font-size: 10px;
            line-height: 16px;
            text-align: center;
            border-radius: 5px;
        }

        #navitems ul li:nth-last-child(2):after {
            display: block;
            width: 16px;
            height: 16px;
            content: "hot";
            color: white;
            background-color: red;
            position: relative;
            left: 60px;
            top: -46px;
            font-size: 10px;
            line-height: 16px;
            text-align: center;
            border-radius: 5px;
        }

        #navitems ul li a:hover {
            font-weight: bold;
            background-color: rgb(80, 251, 137);
            color: white;
            box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .05);
        }

        /*第一个子元素*/
        #navitems ul li:first-child {
            /* background-color: aquamarine; */
        }

        /*最后一个子元素*/
        #navitems ul li:last-child {
            /* background-color: rgb(71, 223, 94); */
        }

        /*第n个子元素*/
        #navitems ul li:nth-child(2) {
            /*从1开始*/
            /* background-color: rgb(160, 115, 237); */
        }

        /*倒数第n个元素*/
        #navitems ul li:nth-last-child(2) {
            /*倒数第2个*/
            /* background-color: bisque; */
        }

        /*直接第一层子元素*/
        .par>span {
            /* color: darkorange; */
        }

        /*下一个兄弟元素*/
        .s1 span+label+label {
            /* font-size: 30px; */
        }

        /*属性选择器*/
        input[type="password"] {
            /* color: green; */
        }

        /*伪类*/
        /* a {
            color: black;
            text-decoration: none;
        } */

        a:hover {
            /*鼠标悬浮*/
            font-weight: bold;
            /*加粗*/
            text-decoration: none;
            color: #000;
        }

        /*被点击后的样式*/
        a:visited {
            /* color: yellow; */
        }

        /*伪元素*/
        .hot_pro {
            display: block;
            width: 60px;
            height: 40px;
            text-decoration: none;
            line-height: 40px;
            text-align: center;
            font-size: 14px;
            color: white;
            background-color: rgb(235, 177, 97);
            box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .05);
        }

        .hot_pro::after {
            display: block;
            content: "hot";
            width: 16px;
            height: 16px;
            color: white;
            background-color: red;
            position: relative;
            /*相对定位*/
            left: 48px;
            top: -48px;
            font-size: 10px;
            line-height: 16px;
            text-align: center;
            border-radius: 5px;
        }


        /* *****************登录************************/
        /*登录导航区域*/
        .flex>.margin-left>a {
            display: block;
            color: white;
            width: 60px;
            height: 50px;
            line-height: 50px;
            text-align: center;
        }

        .flex>.margin-left>a:hover {
            font-weight: bold;
            background-color: rgb(80, 251, 137);
            color: white;
            box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .05);
        }


        .flex>.margin-left>ul {
            display: none;
            position: absolute;
            list-style: none;
            color: #2dbb55;
            font-size: 12px;
            font-family: 微软雅黑;
        }

        .flex>.margin-left:hover ul {
            display: block;
        }

        .flex>.margin-left>ul>li {
            display: block;
        }

        .flex>.margin-left>ul>li>a {
            display: block;
            width: 60px;
            height: 30px;
            text-decoration: none;
            color: #4db46a;
            background-color: white;
            line-height: 30px;
            text-align: center;
        }

        /*先隐蔽*/
        .flex>.margin-left>ul>li>ul {
            list-style: none;
            display: none;
        }

        .flex>.margin-left>ul>li>ul>li {
            display: block;
        }

        .margin-left_logo {
            margin-left: 10%;
        }

        /* **********************调上下左右编剧*************************/
        .margin-top {
            margin-top: 10px;
        }

        .margin-top2 {
            margin-top: 16px;
        }

        .margin-left {
            margin-left: 10%;
        }

        .margin-left2 {
            margin-left: 50px;
        }

        .margin-left1 {
            margin-left: 20px;
        }

        .margin-left_logo {
            margin-left: 10%;
        }
    </style>
</head>

<body>
    <header class="flex header_font" style="width: 100%;">
        <div class="margin-left_logo">
            <a href="" style=" margin-right: 40px;">
                <img src="//img3.tuniucdn.com/u/mainpic/logo/logo_20170124.png" title="途牛网" class="logo">
            </a>
        </div>

        <!--菜单模块-->
        <div id="navitems">
            <ul id="navitems_groups">
                <li><a href="../../html/index/index.html">首页</a></li>
                <li><a href="">跟团游</a></li>
                <li><a href="">自行游</a></li>
                <li><a href="">酒+景</a></li>
                <li><a href="../../html/screen/screen.html">酒店</a></li>
                <li><a href="">门票</a></li>
                <li><a href="">定制游</a></li>
                <li><a href="">攻略</a></li>
                <li><a href="">服务指南</a></li>
                <li><a href="../../html/customer/center_index.html">个人中心</a></li>
                <li><a href="">订单中心</a></li>
            </ul>
        </div>

        <!--登录注册取余-->
        <div class="flex">
            <div class="margin-left" style="width: 60px;">
                <a href="../../html/admin/admin.html" class="header_font">
                    登录
                </a>
            </div>
            <div class="margin-left" style="width: 60px;">
                <a href="../../html/register/register.html">注册</a>
            </div>
        </div>
    </header>
</body>
</html>